package com.creative.accountsdk.net.account;


import com.creative.accountsdk.UmsChannel;
import com.creative.accountsdk.net.Protocol;
import com.creative.accountsdk.net.XParams;
import com.loopj.android.http.RequestParams;
import org.json.JSONObject;

/**
 * Created by David on 15-11-30.
 * 进行游客登陆 ，默认角色为孩子
 */
public class AnonProtocol extends Protocol {

    public JSONObject jsonUser;

    public AnonProtocol() {

    }

    @Override
    public RequestParams getParams() {

        return new XParams()
                .put(UmsChannel.PARAM_NAME, UmsChannel.getChannel())
                .getParams();
    }

    @Override
    public String getUrl() {
        return getUrlPrefix()+"anon";
    }

    @Override
    protected void parseReturnMap(JSONObject returnMap) {
        jsonUser = returnMap;
    }
}
